use serde::{Serialize, Deserialize};
#[derive(Serialize,Deserialize,Debug,Clone,sqlx::FromRow)]
pub struct Comment{
    pub id:i32,
    pub author_id: i32,
    pub content: String,
    pub rate:String,
    pub status: String,
}

#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct CreateComment{
    pub of_id: i32,    //给 什么(guide、mod、image) 的评论，这里的id指的是这个对象的id
    pub content: String,
    pub rate:String,
}

#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct UpdateComment{
    pub id: i32,    
    pub content: String,
    pub rate:String,
}

